package com.zbs.framework.common.utils;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ResultData<T> {

    private Integer code;
    private String message;
    private T data;


    public ResultData() {
    }


    public ResultData(T data) {
        this.data = data;
    }

    public ResultData<T> code(Integer code ){
        this.setCode(code);
        return this;
    }

    public ResultData<T> message(String message){
        this.setMessage(message);
        return this;
    }


    public ResultData<T> data(T value){
        this.data = value;
        return this;
    }

}
